package cn.zhou.service.impl;

import cn.zhou.dao.PaymentDao;
import cn.zhou.entity.Payment;
import cn.zhou.service.PaymentService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * (Payment)表服务实现类
 *
 * @author makejava
 * @since 2020-07-19 16:59:38
 */
@Service
public class PaymentServiceImpl implements PaymentService {

    @Resource
    //java自带  Autowild是spring
    private PaymentDao paymentDao;
    @Override
    public int create(Payment payment) {
        return paymentDao.create(payment);
    }

    @Override
    public Payment getPaymentById(Long id) {
        return paymentDao.getPaymentById(id);
    }
}